
var buildingEdit = {
	editFormSetting : function(){
		var btnSetting = {
		        "취소": function() {
		          $( this ).dialog( "close" );
		        }
			};
		common.dialogPopup($("#dialog-buildingEditForm"), btnSetting);
	},
	/**
	 * 등록/수정 FORM 출력
	 */
	editFormCall : function(callType){

		$("#dialog-buildingEditForm")
			.find(":input").val("").end()
			.find("select option:eq(0)").prop("selected", true).end()
			.dialog({ buttons: {
				"등록": function() {
					userArea.dataEdit("등록", usersForm.dataInsert, true);
		        },
		        "취소": function() {
		          $( this ).dialog( "close" );
		        }
			}}).dialog( "open" );

		return false;
	}
};

$(function(){
	buildingEdit.editFormSetting();
	$(".buildingEditForm").click(buildingEdit.editFormCall);
});